package cn.com.bluemoon.daps.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 通知管理
 * </p>
 *
 * @author admin
 * @since 2022-06-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors
@ApiModel(value = "DapNoticeInfo", description = "通知管理")
public class DapNoticeInfo extends Model<DapNoticeInfo> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "通知的标题")
    private String noticeTitle;

    @ApiModelProperty(value = "通知的内容")
    private String noticeContent;

    @ApiModelProperty(value = "通知的模板 1-影响通知")
    private Integer noticeTemplate;

    @ApiModelProperty(value = "收件人")
    private String receiveUserIds;

    @ApiModelProperty(value = "抄送人")
    private String ccUserIds;

    @ApiModelProperty(value = "通知状态 0-失败 1-成功")
    private Integer noticeStatus;

    @ApiModelProperty(value = "通知方式 1-邮件")
    private Integer noticeMode;

    @ApiModelProperty(value = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    @ApiModelProperty(value = "创建人")
    private String createUserId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "上次修改人")
    private String lastUpdateUserId;

    @ApiModelProperty(value = "上次修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastUpdateTime;


}
